# $Coar$
# LDAPenter: utility to create a LDIF "form" for easy information entering.
PROG=ldapform
SRCS=main.c connect.c search.c classes.c attributes.c attrdfn.c fetch.c
SRCS+=hash.c lde_ldif.c util.c modify.c
LOCALBASE?=/usr/local
PREFIX?=${LOCALBASE}
BINDIR?=${PREFIX}/bin
MANDIR?=${PREFIX}/man/man
LINKS=${BINDIR}/${PROG} ${BINDIR}/ldapedit
MLINKS=ldapform.1 ldapedit.1
PAGER?=more
${PROG}_RUN_ARGS?=-v -h dir -x -D cn=Manager,dc=plainjoe,dc=org -W '(uidNumber=1001)'
WARNS?=3
CFLAGS+=-I${LOCALBASE}/include -DSHA_HEADER="<sha.h>"
LDFLAGS+=-L${LOCALBASE}/lib
LDADD+=-lldap -lmd
.if defined(DEBUG_FLAGS)
CFLAGS:=${CFLAGS:N-O*:N-DNDEBUG} -DDEBUG
.endif

.include <bsd.prog.mk>
